<template>
    <div style="width: 100%;padding:10px;">
      <div class="headerBoxList">
          <svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 4V44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M42 4V44" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M14 15H34" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M14 33H42" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>
          <span style="margin-left: 10px">content 信息 <span style="font-size: 15px;" v-if="total!==0">({{ total }}行)</span></span>
        </div>
        <div class="content">
      
          <p style="border-bottom: 1px solid #ebebeb;" v-for="(item,index) in list" :key="index">· {{ item }}</p>
        </div>
    </div>
  </template>
  
  <script>
  import { getRxTmpPathApi } from '@/api/phoneInfo/index'
  export default {
      name:'contentPhone',
      props:['sendData'],
      data(){
          return{
              list:[],
              total:0
          }
      },
      watch:{
    '$store.state.account.basePhone':function(){
        this.init111();
        }
      },
      created(){
        this.init111();
      },
      mounted(){
      },
      methods:{
      init111(){
      let node = this.sendData;
      let dataJson = {
        "proof_num":node.proof_num,
        "rxTmpPath":node.href,
      }
      getRxTmpPathApi(dataJson).then(res=>{
        if(!res.data)return
        const str = res.data;
        let arr = str.split("\n");
          this.list = arr;
          this.total = arr.length;
        }).catch(error=>{

        })

      }
  
      }
  
  }
  </script>
  
  <style scoped>
      .headerBoxList {
      width: 100%;
      height: 50px;
      border-bottom: 1px solid #d2d2d2;
      display: flex;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
    }
    .content{
      height: 84vh;
      overflow-y: auto;
      /* padding-left:50px; */
      margin-top: 20px;
      overflow-x: hidden;
      overflow-wrap: break-word
  }
  @media screen and (min-width: 2360px) {
      .content{
      height:80vh;
      overflow-y: auto;
      overflow-x: hidden;
      overflow-wrap: break-word
    }
    
    }
    @media screen and (min-width: 2561px) {
      .content{
      height:66vh;
      overflow-y: auto;
      overflow-x: hidden;
      overflow-wrap: break-word
    }
    
    }
  </style>